package com.su.sweet.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.su.sweet.model.AssignVO;
import com.su.sweet.model.PageExt;
import com.su.sweet.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActUserMapper {

    IPage<AssignVO> queryUserPage(PageExt<AssignVO> queryInfo, @Param("wr") AssignVO query);

    IPage<AssignVO> queryRolePage(PageExt<AssignVO> queryInfo, @Param("wr") AssignVO query);

    IPage<AssignVO> queryGroupPage(PageExt<AssignVO> queryInfo, @Param("wr") AssignVO query);

    UserInfo selectUserByName(@Param("userName") String userName);

    List<UserInfo> selectUserByRole(@Param("roleCode") String roleCode);

    List<UserInfo> selectUserByGroup(@Param("groupCode")  String groupCode);
}
